package cn.smbms.tools;

public class PageSupport {
	//当前页码
	private int currentPageNo=1 ;
	
	//总数量（表）
	private int totalCount=0 ;
	
	//页面容量
	private int pageSize=0 ;
	
	//总页数
	private int totalPageCount;
	//其实记录数
	private int start;
	
	public int getStart() {
		
		return start;
	}

	public void setStart(int start) {
		this.start = start;
	}

	public int getCurrentPageNo() {
		return currentPageNo;
	}

	public void setCurrentPageNo(int currentPageNo) {
		this.currentPageNo = currentPageNo;
	}

	public int getTotalCount() {
		int i=0;
		if(totalCount%pageSize==0) {
			i=totalCount/pageSize;
		}else if(totalCount%pageSize!=0){
			i=totalCount/pageSize+1;
		}
		return i;
	}

	public void setTotalCount(int totalCount) {
		this.totalCount = totalCount;
	}

	public int getPageSize() {
		return pageSize;
	}

	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}

	public int getTotalPageCount() {
		return totalPageCount;
	}

	public void setTotalPageCount(int totalPageCount) {
		this.totalPageCount = totalPageCount;
	}

	
}

